<?php
session_start();
include("class/Place.class.php");
$place_id = $_POST['id'];
$user_id = $_SESSION['auth'];
$new_vote = $_POST['vote'];
$places = new Place();
$result = $places->vote($place_id, $user_id, $new_vote);

echo $result;
?>